package com.mycompany.myapp.service.mapper;

import com.mycompany.myapp.domain.*;
import com.mycompany.myapp.service.dto.AdvertisingDTO;

import org.mapstruct.*;

/**
 * Mapper for the entity {@link Advertising} and its DTO {@link AdvertisingDTO}.
 */
@Mapper(componentModel = "spring", uses = {})
public interface AdvertisingMapper extends EntityMapper<AdvertisingDTO, Advertising> {



    default Advertising fromId(Long id) {
        if (id == null) {
            return null;
        }
        Advertising advertising = new Advertising();
        advertising.setId(id);
        return advertising;
    }
}
